<?php 
defined('RUN_KATANA') or die('Restricted access');
$commander->setPostAction('list_ad');
if(defined('AJAX_RUN'))
{ require('forms/list-items.php'); }
else
{ ?>
<div class="tabs" style="height:100%;">
	<ul>
    	<li>
			<a href="#ads" style="font-size:0.9em;">
				<?php echo ucfirst($txt->getWord('ads')); ?>
				<?php 
				if($adc->getUserId() > 0)
				{ echo ' - '.ucfirst($txt->getWord('user').'Id:').$adc->getUserId(); }
				?>
			</a>
		</li>
	</ul>
	<div id="ads"><?php require('forms/list.php'); ?></div> 
</div>
<?php 
}
?>